import { createRouter, createWebHistory } from 'vue-router'

import ShoppingCart from '../views/shoppingCart.vue';
import MyApp from '../views/MyApp.vue';
import RouterMySlot from '../views/routerMySlot.vue';
import RouterShengminzhouqi from '../views/routerShengminzhouqi.vue';

const routes = [
  {
      path: '/',
      component: ShoppingCart
  },
  {
      path: '/myApp',
      component: MyApp
  },
  {
      path: '/routerMySlot',
      component: RouterMySlot
  },
  {
      path: '/routerShengminzhouqi',
      component: RouterShengminzhouqi
  }

  // {
  //   path: '/',
  //   name: 'Home',
  //   component: Home
  // },
  // {
  //   path: '/about',
  //   name: 'About',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  // }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
